package com.kelvin.paopao.injector.modules;

import com.kelvin.paopao.injector.PerActivity;
import com.kelvin.paopao.module.login.register.registerStep2.RegisterStep2Activity;
import com.kelvin.paopao.module.login.register.registerStep2.RegisterStep2Presenter;

import dagger.Module;
import dagger.Provides;

/**
 * Created by Administrator on 2017/5/7.
 */

@Module
public class RegisterStep2Module {
    private final RegisterStep2Activity mView;

    public RegisterStep2Module(RegisterStep2Activity view) {
        mView = view;
    }

    @PerActivity
    @Provides
    public RegisterStep2Presenter providePresenter() {
        return new RegisterStep2Presenter(mView);
    }

}
